package org.me.alexl.controller;

import java.util.Map;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @author alexl
 */
@Controller
public class HomeController {
    @Value("${welcome.message:}")
    private String message = "Hello world";
    
    @RequestMapping("/")
    public String home(Map<String, String> model) {
        model.put("message", this.message);
        return "index";
    }
}
